package com.bytedance.common.plugin.interfaces.pushmanager.setting;

import android.content.Context;

import com.bytedance.common.plugin.interfaces.pushmanager.setting.PushMultiProcessSharedProvider.MultiProcessShared;

public class PartnerWakeUpSetting {
    public static final String LAST_CHECK_PARTNERS_TIME = "last_check_partners_time";
    public static final String WAKE_UP_PARTNERS = "wake_up_partners";
    private Context mContext;
    private MultiProcessShared multiProcessShared;
    private static PartnerWakeUpSetting sPushSetting;

    private PartnerWakeUpSetting(Context arg2) {
        this.mContext = arg2.getApplicationContext();
        this.multiProcessShared = PushMultiProcessSharedProvider.getMultiprocessShared(this.mContext);
    }

    public static PartnerWakeUpSetting getInstance(Context arg2) {
        PartnerWakeUpSetting v0_1;
        Class v1 = PartnerWakeUpSetting.class;
        synchronized (v1) {
            if (PartnerWakeUpSetting.sPushSetting == null) {
                PartnerWakeUpSetting.sPushSetting = new PartnerWakeUpSetting(arg2);
            }

            v0_1 = PartnerWakeUpSetting.sPushSetting;
        }
        return v0_1;
    }

    public long getLastCheckPartnersTime() {
        return this.multiProcessShared.getLong("last_check_partners_time", 0);
    }

    public String getWakeUpPartners() {
        return this.multiProcessShared.getString("wake_up_partners", "");
    }

    public void setLastCheckPartnersTime(long arg4) {
        this.multiProcessShared.edit().putLong("last_check_partners_time", arg4).apply();
    }

    public void setWakeUpPartners(String arg3) {
        this.multiProcessShared.edit().putString("wake_up_partners", arg3).apply();
    }
}

